/**
 * @file mypopen.c
 * Betriebssysteme Mypopen Header-File.
 *
 * Beispiel 2
 *
 * @author Markus Scharitzer 1410258040 <markus.scharitzer@technikum-wien.at>
 * @author Helene Wiesinger 1410258004 <helene.wiesinger@technikum-wien.at>
 * @author Siegfried Becher 141025035 <siegfried.becher@technikum-wien.at>
 * @date 2015/04/19
 *
 * @version 1.0
 *
 * Declarations of functions of own implementations of popen and pclose
 *
 */

#ifndef MYP

/*
 * -------------------------------------------------- includes --
 */

/*
 * --------------------------------------------------- defines --
 */
#define MYP

#define LESEENDE 0
#define SCHREIBEENDE 1

/*
 * -------------------------------------------------- typedefs --
 */

/*
 * --------------------------------------------------- globals --
 */

/*
 * ------------------------------------------------- functions --
 */


/**
 *
 * \brief mypopen function
 *
 * handles request of Main-function
 * creates pipe, checks if read or write, checks instance of process
 *
 * \param command command typed into the console
 * \param type specifies either read or write
 *
 * \return pointer to file
 *
 */
FILE *mypopen(const char *command, const char *type);

/**
 *
 * \brief mypclose function
 *
 * closes the pipe
 *
 * \param stream pointer to file
 *
 * \return exit status - int
 *
 */
int mypclose(FILE *stream);

#endif

/*
 * ======================================================= eof ==
 */

